/*
 Navicat Premium Data Transfer

 Source Server         : LocalHost
 Source Server Type    : SQL Server
 Source Server Version : 15002000
 Source Host           : LocalHost:1433
 Source Catalog        : wiUniGUI
 Source Schema         : dbo

 Target Server Type    : SQL Server
 Target Server Version : 15002000
 File Encoding         : 65001

 Date: 25/03/2021 21:26:17
*/


-- ----------------------------
-- Table structure for tblSearchFormClassToFunction
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[tblSearchFormClassToFunction]') AND type IN ('U'))
	DROP TABLE [dbo].[tblSearchFormClassToFunction]
GO

CREATE TABLE [dbo].[tblSearchFormClassToFunction] (
  [fldSearchFormClass] varchar(100) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [fldFunctionCode] varchar(100) COLLATE Chinese_PRC_CI_AS  NOT NULL
)
GO

ALTER TABLE [dbo].[tblSearchFormClassToFunction] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of tblSearchFormClassToFunction
-- ----------------------------
INSERT INTO [dbo].[tblSearchFormClassToFunction] ([fldSearchFormClass], [fldFunctionCode]) VALUES (N'TfmColorSearch', N'flColor')
GO

INSERT INTO [dbo].[tblSearchFormClassToFunction] ([fldSearchFormClass], [fldFunctionCode]) VALUES (N'TfmCustomerSearch', N'flCustomer')
GO

INSERT INTO [dbo].[tblSearchFormClassToFunction] ([fldSearchFormClass], [fldFunctionCode]) VALUES (N'TfmGoodsAdjustmentSearch', N'flGoodsAdjustment')
GO

INSERT INTO [dbo].[tblSearchFormClassToFunction] ([fldSearchFormClass], [fldFunctionCode]) VALUES (N'TfmGoodsReceivedSearch', N'flGoodsReceived')
GO

INSERT INTO [dbo].[tblSearchFormClassToFunction] ([fldSearchFormClass], [fldFunctionCode]) VALUES (N'TfmGoodsTransferSearch', N'flGoodsTransfer')
GO

INSERT INTO [dbo].[tblSearchFormClassToFunction] ([fldSearchFormClass], [fldFunctionCode]) VALUES (N'TfmItemSearch', N'flItem')
GO

INSERT INTO [dbo].[tblSearchFormClassToFunction] ([fldSearchFormClass], [fldFunctionCode]) VALUES (N'TfmItemTypeSearch', N'flItemType')
GO

INSERT INTO [dbo].[tblSearchFormClassToFunction] ([fldSearchFormClass], [fldFunctionCode]) VALUES (N'TfmProductSearch', N'flItem')
GO

INSERT INTO [dbo].[tblSearchFormClassToFunction] ([fldSearchFormClass], [fldFunctionCode]) VALUES (N'TfmProductToStockSearch', N'flProductToStock')
GO

INSERT INTO [dbo].[tblSearchFormClassToFunction] ([fldSearchFormClass], [fldFunctionCode]) VALUES (N'TfmStockCheckSearch', N'flStockCheck')
GO


-- ----------------------------
-- Primary Key structure for table tblSearchFormClassToFunction
-- ----------------------------
ALTER TABLE [dbo].[tblSearchFormClassToFunction] ADD CONSTRAINT [PK_tblSearchListToFunctionList] PRIMARY KEY CLUSTERED ([fldSearchFormClass], [fldFunctionCode])
WITH (PAD_INDEX = OFF, FILLFACTOR = 90, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO

